package com.sise.service.impl;

import com.sise.dao.FilterWordLogMapper;
import com.sise.dto.FilterWordDTO;
import com.sise.model.po.FilterWordLogPO;
import com.sise.service.FilterWordLogService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author idea
 * @data 2019/6/11
 */
@Service
public class FilterWordLogServiceImpl implements FilterWordLogService {

    @Autowired
    private FilterWordLogMapper filterWordLogMapper;

    @Override
    public void save(FilterWordDTO filterWordDTO) {
        if(filterWordDTO!=null){
            FilterWordLogPO filterWordLogPO=new FilterWordLogPO();
            BeanUtils.copyProperties(filterWordDTO,filterWordLogPO);
            filterWordLogMapper.insert(filterWordLogPO);
        }
    }
}
